package com.goodving.guli.bt.profile.scale;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by john on 2015/11/25.
 */
public class HwConnStatus implements Parcelable {
    public static final Creator<HwConnStatus> CREATOR;
    public static final int f19646a = -1;
    public static final int f19647b = 0;
    public static final int f19648c = 1;
    public static final int f19649d = 2;
    public static final int f19650e = 3;
    public static final int f19651f = 4;
    public static final int f19652g = 5;
    public static final int f19653h = 6;
    public static final int f19654i = 7;
    public static final int f19655j = 8;
    private int f19656k;
    private C3843c f19657l;

    static {
        CREATOR = new C3914l();
    }

    static final class C3914l implements Creator<HwConnStatus> {
        C3914l() {
        }

        public HwConnStatus m25461a(Parcel parcel) {
            HwConnStatus hwConnStatus = new HwConnStatus();
            hwConnStatus.f19656k = parcel.readInt();
            hwConnStatus.f19657l = (C3843c) parcel.readSerializable();
            return hwConnStatus;
        }

        public HwConnStatus[] m25462a(int i) {
            return null;
        }

        public /* synthetic */ HwConnStatus createFromParcel(Parcel parcel) {
            return m25461a(parcel);
        }

        public /* synthetic */ HwConnStatus[] newArray(int i) {
            return m25462a(i);
        }
    }

    public HwConnStatus() {
        this.f19656k = f19646a;
        this.f19657l = C3843c.MILI;
    }

    public HwConnStatus(int i) {
        this.f19656k = f19646a;
        this.f19657l = C3843c.MILI;
        this.f19656k = i;
    }

    public HwConnStatus(int i, C3843c c3843c) {
        this.f19656k = f19646a;
        this.f19657l = C3843c.MILI;
        this.f19656k = i;
        this.f19657l = c3843c;
    }

    public int m25398a() {
        return this.f19656k;
    }

    public C3843c m25399b() {
        return this.f19657l;
    }

    public C3842b m25400c() {
        return this.f19657l.m25102a();
    }

    public boolean m25401d() {
        return this.f19656k == f19646a;
    }

    public int describeContents() {
        return f19647b;
    }

    public boolean m25402e() {
        return this.f19656k == 0;
    }

    public boolean equals(Object obj) {
        if (!(obj instanceof HwConnStatus)) {
            return false;
        }
        HwConnStatus hwConnStatus = (HwConnStatus) obj;
        return this.f19656k == hwConnStatus.m25398a() && this.f19657l.equals(hwConnStatus.m25399b());
    }

    public boolean m25403f() {
        return this.f19656k == f19648c;
    }

    public boolean m25404g() {
        return this.f19656k == f19649d;
    }

    public boolean m25405h() {
        return this.f19656k == f19651f;
    }

    public boolean m25406i() {
        return this.f19656k == f19652g;
    }

    public boolean m25407j() {
        return this.f19656k == f19654i;
    }

    public boolean m25408k() {
        return this.f19656k == f19653h;
    }

    public String toString() {
        return "status : " + this.f19656k;
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(this.f19656k);
        parcel.writeSerializable(this.f19657l);
    }
}

